package com.example.house.data.service;

import com.example.house.common.config.datasources.DS;
import com.example.house.data.dao.DictionaryTypeMapper;
import com.example.house.data.entity.DictionaryType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictionaryTypeService {

    @Autowired
    private DictionaryTypeMapper dictionaryTypeMapper;

    @DS
    public List<DictionaryType> findAll(){
        return dictionaryTypeMapper.selectAll();
    }

}
